<template>
  <div>
    <h2>个人中心</h2>

    <h2>获取参数</h2>
    <p>姓名：{{$route.params.name}}</p>
    <p>性别：{{$route.params.sex}}</p>
  </div>
</template>

<script>
  export default {
    name:'text6',
    created() {
      console.log(this.$router)
      console.log(this.$route)
      console.log(this.$route.path);
      console.log(this.$route.params);
      console.log(this.$route.query); //取？&这样的表达式的值
    }
  }
</script>

<style scoped>

</style>
